import request from "@/utils/request";
import qs from "qs";


export let getExamlistApi = params => {
    return request({
        url: "/exam/exam",
        method: "get",
        params,
        baseURL: "http://localhost:2345"
    });
};

export let setExamDataApi = function (data) {
    return request({
        url: "/exam/addexam",
        method: "post",
        data: qs.stringify(data),
        baseURL: "http://localhost:2345"
    })
}

export let delDataApi = function (id) {
    return request({
        url: "/exam/delexam",
        method: "get",
        params: {
            id
        },
        baseURL: "http://localhost:2345"
    })
}